﻿using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Project.Tool
{
    public class JsonHelper
    {
        /// <summary>
        /// JSON字符串处理
        /// </summary>
        /// <param name="jsonStr"></param>
        /// <returns></returns>
        public static JObject Parse(string jsonStr)
        {
            try
            {
                return JObject.Parse(jsonStr);
            }
            catch( Exception e)
            {
                return new JObject();
            }
            
        }

    }
}
